import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import TypeNav from './components/TypeNav'
import Pagination from './components/Pagination'
import './mock/mockServe'
import 'swiper/css/swiper.css'

Vue.config.productionTip = false

//全局注册TypeNav 因为很多地方用到TypeNav
Vue.component(TypeNav.name,TypeNav)

//全局注册Pagination
Vue.component(Pagination.name,Pagination)

new Vue({
  router,
  store,
  beforeCreate(){
    Vue.prototype.$bus = this
  },
  render: h => h(App),
}).$mount('#app')
